<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Vectors.Vector</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="autorzy: Elwira Kowalewska, Piotr Karolus, Kacper Kapu&#347;niak grupa 21K7">
Modelowanie i symulacja zderze&#324; spr&#281;&#380;ystych
</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Vectors-module.html">Module&nbsp;Vectors</a> ::
        Class&nbsp;Vector
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Vectors.Vector-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class Vector</h1><p class="nomargin-top"><span class="codelink"><a href="Vectors-pysrc.html#Vector">source&nbsp;code</a></span></p>
<pre class="base-tree">
object --+
         |
        <strong class="uidshort">Vector</strong>
</pre>

<dl><dt>Known Subclasses:</dt>
<dd>
      <ul class="subclass-list">
<li><a href="Vectors.Gravity-class.html">Gravity</a></li><li>, <a href="Vectors.Velocity-class.html">Velocity</a></li>  </ul>
</dd></dl>

<hr />
<p>Klasa reprezentuj&#261;ca wektor w uk&#322;adzie wsp&#243;&#322;rz&#281;dnych.</p>
  <p>Posiada dwa g&#322;&#243;wne atrybuty symbolizuj&#261;ce sk&#322;adowe wektora, na kt&#243;re 
  mo&#380;na roz&#322;o&#380;y&#263; ka&#380;dy wektor w uk&#322;adzie wsp&#243;&#322;rz&#281;dnych OXY. Znaki 
  sk&#322;adowych oznaczaj&#261; ich kierunek w uk&#322;adzie wsp&#243;&#322;rz&#281;dnych. Gdy sk&#322;adowa 
  X ma warto&#347;&#263; dodatni&#261;, to jej wektor jest skierowany w prawo, a gdy 
  ujemn&#261; - w lewo. Natomiast gdy sk&#322;adowa Y ma warto&#347;&#263; dodatni&#261;, to jej 
  wektor jest skierowany w g&#243;r&#281;, a gdy ujemn&#261; - w d&#243;&#322;.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">Vx</span>,
        <span class="summary-sig-arg">Vy</span>)</span><br />
      Konstruktor obiektu wektora ustawia pocz&#261;tkowe warto&#347;ci obu 
      sk&#322;adowych wektora.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#setVector" class="summary-sig-name">setVector</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">Vx</span>,
        <span class="summary-sig-arg">Vy</span>)</span><br />
      Procedura ustawiaj&#261;ca podane warto&#347;ci sk&#322;adowych wektora.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.setVector">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#getVx" class="summary-sig-name">getVx</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Funkcja zwracaj&#261;ca sk&#322;adow&#261; X wektora.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.getVx">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#getVy" class="summary-sig-name">getVy</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Funkcja zwracaj&#261;ca sk&#322;adow&#261; Y wektora.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.getVy">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#setVx" class="summary-sig-name">setVx</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">NewVx</span>)</span><br />
      Procedura ustawiaj&#261;ca sk&#322;adow&#261; X wektora.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.setVx">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#setVy" class="summary-sig-name">setVy</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">NewVy</span>)</span><br />
      Procedura ustawiaj&#261;ca sk&#322;adow&#261; Y wektora.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.setVy">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#getVectorLength" class="summary-sig-name">getVectorLength</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Funkcja zwracaj&#261;ca d&#322;ugo&#347;&#263; wektora.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.getVectorLength">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#addVector" class="summary-sig-name">addVector</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">AnotherVector</span>)</span><br />
      Procedura dodaj&#261;ca do aktualnych warto&#347;ci wektora sk&#322;adowe nowego 
      wektora, podanego w parametrach.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.addVector">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#substractVector" class="summary-sig-name">substractVector</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">AnotherVector</span>)</span><br />
      Procedura odejmuj&#261;ca od aktualnych warto&#347;ci wektora sk&#322;adowe nowego 
      wektora, podanego w parametrach.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.substractVector">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#multiplyVector" class="summary-sig-name">multiplyVector</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">Factor</span>)</span><br />
      Procedura mno&#380;&#261;ca wektor przez podany w parametrze czynnik.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.multiplyVector">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#calculateCrossProduct" class="summary-sig-name">calculateCrossProduct</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">anotherVector</span>)</span><br />
      Funkcja obliczaj&#261;ca iloczyn wektorowy dla wektora na rzecz kt&#243;rego 
      zosta&#322;a wywo&#322;ana i wektora podanego w parametrze.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.calculateCrossProduct">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#calculateDotProduct" class="summary-sig-name">calculateDotProduct</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">anotherVector</span>)</span><br />
      Funkcja obliczaj&#261;ca iloczyn skalarny dla wektora na rzecz kt&#243;rego 
      zosta&#322;a wywo&#322;ana i wektora podanego w parametrze.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.calculateDotProduct">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#dot" class="summary-sig-name">dot</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">anotherVector</span>)</span><br />
      Funkcja obliczaj&#261;ca iloczyn skalarny dla wektora na rzecz kt&#243;rego 
      zosta&#322;a wywo&#322;ana i wektora podanego w parametrze.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.dot">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#rotateVector" class="summary-sig-name">rotateVector</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">rotationAngle</span>)</span><br />
      Procedura obracaj&#261;ca wektor o podany w parametrze k&#261;t w stopniach.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.rotateVector">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#lengthenVector" class="summary-sig-name">lengthenVector</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">value</span>)</span><br />
      Procedura wyd&#322;u&#380;aj&#261;ca wektor o podan&#261; warto&#347;&#263;.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.lengthenVector">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#shortenVector" class="summary-sig-name">shortenVector</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">value</span>)</span><br />
      Procedura skracaj&#261;ca wektor o podan&#261; warto&#347;&#263;.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.shortenVector">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#calculateAngleBetweenVector" class="summary-sig-name">calculateAngleBetweenVector</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">anotherVector</span>)</span><br />
      Funkcja obliczaj&#261;ca k&#261;t mi&#281;dzy dwoma wektorami.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.calculateAngleBetweenVector">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#getVectorAngle" class="summary-sig-name">getVectorAngle</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Funkcja zwracaj&#261;ca k&#261;t wektora w odniesieniu do osi OX.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.getVectorAngle">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Vectors.Vector-class.html#normalize" class="summary-sig-name">normalize</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Funkcja zwracaj&#261;ca wektor znormalizowany.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Vectors-pysrc.html#Vector.normalize">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__sizeof__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Properties</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Properties"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">Vx</span>,
        <span class="sig-arg">Vy</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Konstruktor obiektu wektora ustawia pocz&#261;tkowe warto&#347;ci obu sk&#322;adowych
  wektora.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>Vx</code></strong> - Parametr okre&#347;laj&#261;cy warto&#347;&#263; sk&#322;adowej pr&#281;dko&#347;ci na osi X.</li>
        <li><strong class="pname"><code>Vy</code></strong> - Parametr okre&#347;laj&#261;cy warto&#347;&#263; sk&#322;adowej pr&#281;dko&#347;ci na osi Y.</li>
    </ul></dd>
    <dt>Overrides:
        object.__init__
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="setVector"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setVector</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">Vx</span>,
        <span class="sig-arg">Vy</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.setVector">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura ustawiaj&#261;ca podane warto&#347;ci sk&#322;adowych wektora.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>Vx</code></strong> - Parametr okre&#347;laj&#261;cy warto&#347;&#263; sk&#322;adowej pr&#281;dko&#347;ci na osi X.</li>
        <li><strong class="pname"><code>Vy</code></strong> - Parametr okre&#347;laj&#261;cy warto&#347;&#263; sk&#322;adowej pr&#281;dko&#347;ci na osi Y.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="getVx"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getVx</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.getVx">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja zwracaj&#261;ca sk&#322;adow&#261; X wektora.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>Sk&#322;adowa wektora na osi X.</dd>
  </dl>
</td></tr></table>
</div>
<a name="getVy"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getVy</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.getVy">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja zwracaj&#261;ca sk&#322;adow&#261; Y wektora.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>Sk&#322;adowa wektora na osi Y.</dd>
  </dl>
</td></tr></table>
</div>
<a name="setVx"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setVx</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">NewVx</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.setVx">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura ustawiaj&#261;ca sk&#322;adow&#261; X wektora.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>NewVx</code></strong> - Parametr okre&#347;laj&#261;cy now&#261; warto&#347;&#263; sk&#322;adowej pr&#281;dko&#347;ci na osi X.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setVy"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setVy</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">NewVy</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.setVy">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura ustawiaj&#261;ca sk&#322;adow&#261; Y wektora.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>NewVy</code></strong> - Parametr okre&#347;laj&#261;cy now&#261; warto&#347;&#263; sk&#322;adowej pr&#281;dko&#347;ci na osi Y.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="getVectorLength"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getVectorLength</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.getVectorLength">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja zwracaj&#261;ca d&#322;ugo&#347;&#263; wektora.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>D&#322;ugo&#347;&#263; wektora: <i class="math">sqrt(Vx^2+Vy^2)</i></dd>
  </dl>
</td></tr></table>
</div>
<a name="addVector"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">addVector</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">AnotherVector</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.addVector">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura dodaj&#261;ca do aktualnych warto&#347;ci wektora sk&#322;adowe nowego 
  wektora, podanego w parametrach.</p>
  <p>Wynikiem jest wektor, b&#281;d&#261;cy wypadkow&#261; dw&#243;ch wektor&#243;w.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>AnotherVector</code></strong> - Parametr okre&#347;laj&#261;cy nowy wektor.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="substractVector"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">substractVector</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">AnotherVector</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.substractVector">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura odejmuj&#261;ca od aktualnych warto&#347;ci wektora sk&#322;adowe nowego 
  wektora, podanego w parametrach.</p>
  <p>Wynikiem jest wektor, b&#281;d&#261;cy r&#243;&#380;nic&#261; dw&#243;ch wektor&#243;w.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>AnotherVector</code></strong> - Parametr okre&#347;laj&#261;cy nowy wektor.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="multiplyVector"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">multiplyVector</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">Factor</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.multiplyVector">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura mno&#380;&#261;ca wektor przez podany w parametrze czynnik.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>Factor</code></strong> - Parametr okre&#347;laj&#261;cy warto&#347;&#263; mno&#380;nika.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="calculateCrossProduct"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">calculateCrossProduct</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">anotherVector</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.calculateCrossProduct">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja obliczaj&#261;ca iloczyn wektorowy dla wektora na rzecz kt&#243;rego 
  zosta&#322;a wywo&#322;ana i wektora podanego w parametrze.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>AnotherVector</code></strong> - Parametr okre&#347;laj&#261;cy nowy wektor.</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd>Iloczyn wektorowy: <i class="math">V1x*V2y-V1y*V2x</i></dd>
  </dl>
</td></tr></table>
</div>
<a name="calculateDotProduct"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">calculateDotProduct</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">anotherVector</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.calculateDotProduct">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja obliczaj&#261;ca iloczyn skalarny dla wektora na rzecz kt&#243;rego 
  zosta&#322;a wywo&#322;ana i wektora podanego w parametrze.</p>
  <p>Funkcja oblicza iloczyn skalarny na podstawie d&#322;ugo&#347;ci wektor&#243;w i k&#261;ta
  pomi&#281;dzy nimi.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>AnotherVector</code></strong> - Parametr okre&#347;laj&#261;cy nowy wektor.</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd>Iloczyn skalarny: <i class="math">|V1|*|V2|*cos(&ang;)</i></dd>
  </dl>
</td></tr></table>
</div>
<a name="dot"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">dot</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">anotherVector</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.dot">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja obliczaj&#261;ca iloczyn skalarny dla wektora na rzecz kt&#243;rego 
  zosta&#322;a wywo&#322;ana i wektora podanego w parametrze.</p>
  <p>Funkcja oblicza iloczyn skalarny na podstawie wsp&#243;&#322;rz&#281;dnych 
  wektor&#243;w.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>AnotherVector</code></strong> - Parametr okre&#347;laj&#261;cy nowy wektor.</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd>Iloczyn skalarny: <i class="math">V1x*V2x+V1y*V2y</i></dd>
  </dl>
</td></tr></table>
</div>
<a name="rotateVector"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">rotateVector</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">rotationAngle</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.rotateVector">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura obracaj&#261;ca wektor o podany w parametrze k&#261;t w stopniach.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>rotationAngle</code></strong> - Parametr okre&#347;laj&#261;cy k&#261;t obrotu w [*].</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="lengthenVector"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">lengthenVector</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">value</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.lengthenVector">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura wyd&#322;u&#380;aj&#261;ca wektor o podan&#261; warto&#347;&#263;.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>Value</code></strong> - Parametr okre&#347;laj&#261;cy o ile ma zosta&#263; przed&#322;u&#380;ony wektor.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="shortenVector"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">shortenVector</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">value</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.shortenVector">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura skracaj&#261;ca wektor o podan&#261; warto&#347;&#263;.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>Value</code></strong> - Parametr okre&#347;laj&#261;cy o ile ma zosta&#263; skr&#243;cony wektor.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="calculateAngleBetweenVector"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">calculateAngleBetweenVector</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">anotherVector</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.calculateAngleBetweenVector">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja obliczaj&#261;ca k&#261;t mi&#281;dzy dwoma wektorami.</p>
  <p>Obliczony k&#261;t podany jest w radianach.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>AnotherVector</code></strong> - Parametr okre&#347;laj&#261;cy nowy wektor.</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd>Funkcja zwraca warto&#347;&#263; k&#261;ta pomi&#281;dzy wektorami:
          <ol start="1">
            <li>
              Gdy warto&#347;&#263; wyra&#380;enia <i 
              class="math">(V1&omicron;V2)/(V1*V2)</i> jest mniejsza ni&#380; -1
              to funkcja zwraca Arccos(-1).
            </li>
            <li>
              Gdy warto&#347;&#263; wyra&#380;enia <i 
              class="math">(V1&omicron;V2)/(V1*V2)</i> jest wi&#281;ksza ni&#380; 1 
              to funkcja zwraca Arccos(1).
            </li>
          </ol></dd>
  </dl>
</td></tr></table>
</div>
<a name="getVectorAngle"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getVectorAngle</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.getVectorAngle">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja zwracaj&#261;ca k&#261;t wektora w odniesieniu do osi OX.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>Warto&#347;&#263; k&#261;ta pomi&#281;dzy wektorem a osi&#261; X.</dd>
  </dl>
</td></tr></table>
</div>
<a name="normalize"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">normalize</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Vectors-pysrc.html#Vector.normalize">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja zwracaj&#261;ca wektor znormalizowany.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd><ol start="1">
            <li>
              Je&#380;eli d&#322;ugo&#347;&#263; wektora jest r&#243;&#380;na od 0 wtedy funkcja zwraca 
              wektor znormalizowany dziel&#261;c jego wsp&#243;&#322;rz&#281;dne przez jego 
              d&#322;ugo&#347;&#263;.
            </li>
            <li>
              Je&#380;eli d&#322;ugo&#347;&#263; wektora jest r&#243;wna O wtedy funkcja zwraca 
              wektor zerowy.
            </li>
          </ol></dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="autorzy: Elwira Kowalewska, Piotr Karolus, Kacper Kapu&#347;niak grupa 21K7">
Modelowanie i symulacja zderze&#324; spr&#281;&#380;ystych
</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Jan 29 03:27:58 2014
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
